$(document).ready(function()
{
	if ( Modernizr.touch )
	{

	}else{
		$("a.loginbasis").attr("data-reveal-id","loginDiv");
		
		$("a.loginbasis").click(function()
		{
			var type = $(this).attr('data-user-type');
			var url = 'auth/login/'+type;
			$('form#backendLogin').attr('action',url);
			$('p#heading span#postitle').text(type);
		});
	}
});
